package kr.ac.kaist.ysproject.option;

import kr.ac.kaist.ysproject.R;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.MenuItem;

public class MainOptionMenu {
	public Activity activity;

	public MainOptionMenu() {

	}

	public MainOptionMenu(Activity actTmp) {
		activity = actTmp;
	}

	public boolean initSelected(MenuItem item) {
		switch (item.getItemId()) {
        	
        case R.id.Setting:			// 세팅 버튼
        	
        	Intent intent = new Intent("kr.ac.kaist.ysproject.SettingActivity");
        	activity.startActivity(intent);
        	
        	return true;
        	
		default:
			return false;
		}
	}

	public void initMenu(Menu menu) {
		if (menu != null) {
			// menu의 종류를 바꿀 수 있음
		}
	}
}
